package com.ytxg.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 小说评论
 * </p>
 *
 * @author YT_XG
 * @since 2023-12-21
 */
@TableName("book_comment")
@ApiModel(value = "BookComment对象", description = "小说评论")
public class BookComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("评论小说ID")
    private Long bookId;

    @ApiModelProperty("评论用户ID")
    private Long userId;

    @ApiModelProperty("评价内容")
    private String commentContent;

    @ApiModelProperty("回复数量")
    private Integer replyCount;

    @ApiModelProperty("审核状态;0-待审核 1-审核通过 2-审核不通过")
    private Byte auditStatus;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Integer getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Integer replyCount) {
        this.replyCount = replyCount;
    }

    public Byte getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Byte auditStatus) {
        this.auditStatus = auditStatus;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "BookComment{" +
            "id = " + id +
            ", bookId = " + bookId +
            ", userId = " + userId +
            ", commentContent = " + commentContent +
            ", replyCount = " + replyCount +
            ", auditStatus = " + auditStatus +
            ", createTime = " + createTime +
            ", updateTime = " + updateTime +
        "}";
    }
}
